package com.managerProvider.service;

import entity.ResponseMessage;
import entity.Role;
import entity.Ur;

/**
 * The interface Role service.
 *
 * @author overlook
 * @date 2022 -04-16 20:12:10
 */
public interface RoleService {

    /**
     * Select all role response message.
     *
     * @param role the role
     * @return the response message
     */
    ResponseMessage selectAllRole(Role role);


    /**
     * Insert role response message.
     *
     * @param role the role
     * @return the response message
     */
    ResponseMessage insertRole(Role role);


    /**
     * Update role response message.
     *
     * @param role the role
     * @return the response message
     */
    ResponseMessage updateRole(Role role);


    /**
     * Insert ur response message.
     *
     * @param ur the ur
     * @return the response message
     */
    ResponseMessage insertUr(Ur ur);

    /**
     * Select role and power response message.
     *
     * @param role the role
     * @return the response message
     */
    ResponseMessage selectRoleAndPower(Role role);


    /**
     * Select one role power response message.
     *
     * @param role the role
     * @return the response message
     */
    ResponseMessage selectOneRolePower(Role role);

}
